import request from '@/utils/request'

export default {


  //分页
  SelectFen(user) {
    return request({
        url: `/userProfile/index`,
        method: 'get',
        params:user
    })
},


 //添加人事档案
renShiadd(user){
  return request({
    url:'userProfile/add',
    method:'post',
    data:user
  })
},


  // 删除
  danandel(ids){
    return request({
      url:`/userProfile/deleteByIds`,
      method:'delete',
      data:ids
    })
  },



  // OaDanganFold/dangAn/info/{id}
  // 档案详情
  renyuanAlls(id){
    return request({
      url:`/userProfile/info/${id}`,
      method:'get',
    })
  },




    //编辑人事档案
    renshiUpdate(user) {
      return request({
        url: `/userProfile/edit/${user.profileId}`,
        method: 'post',
        data: user
      })
    },

}
